package com.chixing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chixing.pojo.ChatHistory;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xyh
 * @since 2022-11-02
 */
public interface IChatHistoryService extends IService<ChatHistory> {

    public String getChatContent(ChatHistory chatHistory);
    public boolean updateChatContent(ChatHistory chatHistory);

    //获得聊天状态是否已读
    Boolean getChatStatus(ChatHistory chatHistory);
    //更新小红点，返回未读消息的数量
    Integer getChatStatusNumber(String username);
}
